package com.ds.api.model;

import java.io.Serializable;

public class UserDoorSer implements Serializable {
    private Integer uid;

    private Integer fkUserBasicinfoUid;

    private Integer fkTypeServerId1;

    private Integer fkTypeServerId2;

    private Integer fkTypeServerId3;

    private static final long serialVersionUID = 1L;

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getFkUserBasicinfoUid() {
        return fkUserBasicinfoUid;
    }

    public void setFkUserBasicinfoUid(Integer fkUserBasicinfoUid) {
        this.fkUserBasicinfoUid = fkUserBasicinfoUid;
    }

    public Integer getFkTypeServerId1() {
        return fkTypeServerId1;
    }

    public void setFkTypeServerId1(Integer fkTypeServerId1) {
        this.fkTypeServerId1 = fkTypeServerId1;
    }

    public Integer getFkTypeServerId2() {
        return fkTypeServerId2;
    }

    public void setFkTypeServerId2(Integer fkTypeServerId2) {
        this.fkTypeServerId2 = fkTypeServerId2;
    }

    public Integer getFkTypeServerId3() {
        return fkTypeServerId3;
    }

    public void setFkTypeServerId3(Integer fkTypeServerId3) {
        this.fkTypeServerId3 = fkTypeServerId3;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserDoorSer other = (UserDoorSer) that;
        return (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getFkUserBasicinfoUid() == null ? other.getFkUserBasicinfoUid() == null : this.getFkUserBasicinfoUid().equals(other.getFkUserBasicinfoUid()))
            && (this.getFkTypeServerId1() == null ? other.getFkTypeServerId1() == null : this.getFkTypeServerId1().equals(other.getFkTypeServerId1()))
            && (this.getFkTypeServerId2() == null ? other.getFkTypeServerId2() == null : this.getFkTypeServerId2().equals(other.getFkTypeServerId2()))
            && (this.getFkTypeServerId3() == null ? other.getFkTypeServerId3() == null : this.getFkTypeServerId3().equals(other.getFkTypeServerId3()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getFkUserBasicinfoUid() == null) ? 0 : getFkUserBasicinfoUid().hashCode());
        result = prime * result + ((getFkTypeServerId1() == null) ? 0 : getFkTypeServerId1().hashCode());
        result = prime * result + ((getFkTypeServerId2() == null) ? 0 : getFkTypeServerId2().hashCode());
        result = prime * result + ((getFkTypeServerId3() == null) ? 0 : getFkTypeServerId3().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uid=").append(uid);
        sb.append(", fkUserBasicinfoUid=").append(fkUserBasicinfoUid);
        sb.append(", fkTypeServerId1=").append(fkTypeServerId1);
        sb.append(", fkTypeServerId2=").append(fkTypeServerId2);
        sb.append(", fkTypeServerId3=").append(fkTypeServerId3);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}